﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.Common;
using ArkEC.SEMs.BizObject.MLM;

namespace ArkEC.SEMs.DataAccess.MLM
{
    /// <summary>
    /// 语言种类数据库操作接口
    /// </summary>
    public interface ILanTypeDA
    {
        /// <summary>
        /// 获取所有语言种类
        /// </summary>
        /// <param name="conn"></param>
        /// <param name="tran"></param>
        /// <returns></returns>
        DataTable GetLanTypes(DbConnection conn, DbTransaction tran);

        /// <summary>
        /// 获取所有语言资源表
        /// </summary>
        /// <param name="conn"></param>
        /// <param name="tran"></param>
        /// <returns></returns>
        DataTable GetLanResTables(DbConnection conn, DbTransaction tran);

        /// <summary>
        /// 清理语言种类
        /// </summary>
        /// <param name="conn"></param>
        /// <param name="tran"></param>
        void Clear(DbConnection conn, DbTransaction tran);

        /// <summary>
        /// 新增语言种类
        /// </summary>
        /// <param name="conn"></param>
        /// <param name="tran"></param>
        /// <param name="obj"></param>
        void Insert(DbConnection conn, DbTransaction tran, LanType obj);
    }
}
